using System;
using System.Text;

namespace iBeauty.BusinessObjects
{
	[Serializable()]
	public class Shop
	{
		private string _ID;

		public string ID
		{
			get { return _ID; }
			set { _ID = value; }
		}

		private DateTime? _CreateDate;

		public DateTime? CreateDate
		{
			get { return _CreateDate; }
			set { _CreateDate = value; }
		}

		private DateTime? _ModifiedDate;

		public DateTime? ModifiedDate
		{
			get { return _ModifiedDate; }
			set { _ModifiedDate = value; }
		}

		private DateTime? _TimeStamp;

		public DateTime? TimeStamp
		{
			get { return _TimeStamp; }
			set { _TimeStamp = value; }
		}

		private string _ShopCode;

		public string ShopCode
		{
			get { return _ShopCode; }
			set { _ShopCode = value; }
		}

		private string _ShopName;

		public string ShopName
		{
			get { return _ShopName; }
			set { _ShopName = value; }
		}

		private int? _ShopType;

		public int? ShopType
		{
			get { return _ShopType; }
			set { _ShopType = value; }
		}

		private string _Address;

		public string Address
		{
			get { return _Address; }
			set { _Address = value; }
		}

		private string _Email;

		public string Email
		{
			get { return _Email; }
			set { _Email = value; }
		}

		private string _Phone;

		public string Phone
		{
			get { return _Phone; }
			set { _Phone = value; }
		}

		private string _Fax;

		public string Fax
		{
			get { return _Fax; }
			set { _Fax = value; }
		}

		private DateTime? _OpenTime;

		public DateTime? OpenTime
		{
			get { return _OpenTime; }
			set { _OpenTime = value; }
		}

		private DateTime? _CloseTime;

		public DateTime? CloseTime
		{
			get { return _CloseTime; }
			set { _CloseTime = value; }
		}

		private int? _AccountId;

		public int? AccountId
		{
			get { return _AccountId; }
			set { _AccountId = value; }
		}

		private string _Note;

		public string Note
		{
			get { return _Note; }
			set { _Note = value; }
		}

		public Shop()
		{ }

		public Shop(string ID,DateTime? CreateDate,DateTime? ModifiedDate,DateTime? TimeStamp,string ShopCode,string ShopName,int? ShopType,string Address,string Email,string Phone,string Fax,DateTime? OpenTime,DateTime? CloseTime,int? AccountId,string Note)
		{
			this.ID = ID;
			this.CreateDate = CreateDate;
			this.ModifiedDate = ModifiedDate;
			this.TimeStamp = TimeStamp;
			this.ShopCode = ShopCode;
			this.ShopName = ShopName;
			this.ShopType = ShopType;
			this.Address = Address;
			this.Email = Email;
			this.Phone = Phone;
			this.Fax = Fax;
			this.OpenTime = OpenTime;
			this.CloseTime = CloseTime;
			this.AccountId = AccountId;
			this.Note = Note;
		}

		public override string ToString()
		{
			return "ID = " + ID + ",CreateDate = " + CreateDate.ToString() + ",ModifiedDate = " + ModifiedDate.ToString() + ",TimeStamp = " + TimeStamp.ToString() + ",ShopCode = " + ShopCode + ",ShopName = " + ShopName + ",ShopType = " + ShopType.ToString() + ",Address = " + Address + ",Email = " + Email + ",Phone = " + Phone + ",Fax = " + Fax + ",OpenTime = " + OpenTime.ToString() + ",CloseTime = " + CloseTime.ToString() + ",AccountId = " + AccountId.ToString() + ",Note = " + Note;
		}

		public class IDComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public IDComparer()
			{ }
			public IDComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.ID.CompareTo(x.ID);
				}
				else
				{
					return x.ID.CompareTo(y.ID);
				}
			}
			#endregion
		}
		public class ShopCodeComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public ShopCodeComparer()
			{ }
			public ShopCodeComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.ShopCode.CompareTo(x.ShopCode);
				}
				else
				{
					return x.ShopCode.CompareTo(y.ShopCode);
				}
			}
			#endregion
		}
		public class ShopNameComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public ShopNameComparer()
			{ }
			public ShopNameComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.ShopName.CompareTo(x.ShopName);
				}
				else
				{
					return x.ShopName.CompareTo(y.ShopName);
				}
			}
			#endregion
		}
		public class AddressComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public AddressComparer()
			{ }
			public AddressComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Address.CompareTo(x.Address);
				}
				else
				{
					return x.Address.CompareTo(y.Address);
				}
			}
			#endregion
		}
		public class EmailComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public EmailComparer()
			{ }
			public EmailComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Email.CompareTo(x.Email);
				}
				else
				{
					return x.Email.CompareTo(y.Email);
				}
			}
			#endregion
		}
		public class PhoneComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public PhoneComparer()
			{ }
			public PhoneComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Phone.CompareTo(x.Phone);
				}
				else
				{
					return x.Phone.CompareTo(y.Phone);
				}
			}
			#endregion
		}
		public class FaxComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public FaxComparer()
			{ }
			public FaxComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Fax.CompareTo(x.Fax);
				}
				else
				{
					return x.Fax.CompareTo(y.Fax);
				}
			}
			#endregion
		}
		public class NoteComparer : System.Collections.Generic.IComparer<Shop>
		{
			public SorterMode SorterMode;
			public NoteComparer()
			{ }
			public NoteComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Shop> Membres
			int System.Collections.Generic.IComparer<Shop>.Compare(Shop x, Shop y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Note.CompareTo(x.Note);
				}
				else
				{
					return x.Note.CompareTo(y.Note);
				}
			}
			#endregion
		}
	}
}
